﻿@model BE.DataFramework.DataTransactionsBE
@{
    Layout = null;
}
@*<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>*@

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Capture el nuevo registro</legend>

       @* <div class="editor-label">
            @Html.LabelFor(model => model.iDataTransactionId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.iDataTransactionId)
            @Html.ValidationMessageFor(model => model.iDataTransactionId)
        </div>*@

        <div class="editor-label">
            @Html.LabelFor(model => model.sName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sName)
            @Html.ValidationMessageFor(model => model.sName)
        </div>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.sGUID)
        </div>*@
       @* <div class="editor-field">
            @Html.EditorFor(model => model.sGUID)
            @Html.ValidationMessageFor(model => model.sGUID)
        </div>*@

        <div class="editor-label">
            Conexión
        </div>
        <div class="editor-field">
            @Html.Partial("ConnectionCombo",new BC.DataFramework.ConnectionsBC().Select(new BE.DataFramework.ConnectionsBE()))
            @Html.ValidationMessageFor(model => model.iConnectionId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sProcedureName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sProcedureName)
            @Html.ValidationMessageFor(model => model.sProcedureName)
        </div>

        <p>
            <input type="button" value="Create" onclick="CreateDataTransaction()" />
        </p>
    </fieldset>
}

<div>
@*    @Html.ActionLink("Back to List", "List")*@
</div>
